package com.sync.data.mce.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sync.data.base.BaseEntity;
import com.sync.data.common.annotation.FieldProps;
import com.sync.data.common.annotation.FieldType;
import com.sync.data.common.annotation.RenderAs;
import com.sync.data.common.annotation.RenderType;
import com.sync.data.common.obj.annoation.ObjectPrefix;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;

import javax.persistence.Entity;
import java.io.Serializable;

import lombok.*;
import org.springframework.data.annotation.CreatedDate;
import java.util.Date;

/**
 * @author xianchuang.li
 * @version 1.0.0
 * @since 2025/8/4 19:13
 **/
@Builder
@Getter
@Setter
@Entity
@AllArgsConstructor
@NoArgsConstructor
@ObjectPrefix("bpdt")
public class BpmDepartmentInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @FieldProps(type = FieldType.STRING, label = "id")
    public String id;

    @JsonFormat(
            timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;

    @FieldProps(type = FieldType.STRING, label = "部门全名")
    private String fullName;

    @FieldProps(type = FieldType.STRING, label = "员工号")
    private String empCode;

    @FieldProps(type = FieldType.STRING, label = "部门ID")
    private String deptId;

}
